// 当前环境常量
const ENV = 'TEST';

const TOKENS = {
    API: {
        TEST: {
            KEY: 'wwwcomcn'
        }
    }
};

/**
 * 七牛云
 *
 * @static
 * @memberof Setting
 */
const Qiniu = {
    UPLOAD_URL: 'http://upload.qiniu.com',
    IMAGE_BASE_URL: 'http://storage.yunspace.com.cn/'
};

/**
 * 百度地图
 *
 * @static
 * @memberof Setting
 */
const Baidu = {

};

/**
 * 服务器
 *
 * @static
 * @memberof Setting
 */
const Urls = {
    SERVER: {
        TEST: 'https://upload.yunspace.com.cn/api/',
        PRO: ''
    },
    APP: {
        TEST: 'http://139.224.197.70:8001/',
        PRO: ''
    }
};

/**
 * 获取环境变量方法
 * 
 * @param {string} [serverName='SERVER'] 
 * @returns 
 */
function GetEnvUrl(serverName = 'SERVER') {
    return Urls[serverName][ENV];
}

export {
    TOKENS,
    Baidu,
    Qiniu,
    GetEnvUrl
};
